<?php

/* 订单支付 orderpay */
class OrderpayModel extends BaseModel
{
	var $table  = 'order_pay';
	var $prikey = 'pay_id';
	var $_name  = 'order_pay';
	
	function get_out_trade_sn($out_trade_sn)
	{

		$sql = "SELECT * FROM {$this->table} WHERE out_trade_sn = '{$out_trade_sn}' limit 1";
		$row = $this->db->getRow($sql);
		return $row;
	}

}

?>